From: Jasper St. Pierre Date: Fri, 11 Oct 2013 17:35:51 +0000 (-0400) Subject: notificationDaemon: Fix the fallback for image-data X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3234 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=766ef367fb938ebd6cc4351f26e8215797a0514d;p=gnome-shell.git notificationDaemon: Fix the fallback for image-data The indentation here is wrong, the else actually belongs to the outer if statement, not the inner if statement. --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 22dbb6f20..2370a49a9 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -396,12 +396,13 @@ const NotificationDaemon = new Lang.Class({ if (!hints['image-path'] && hints['image_path']) hints['image-path'] = hints['image_path']; // version 1.1 of the spec - if (!hints['image-data']) + if (!hints['image-data']) { if (hints['image_data']) hints['image-data'] = hints['image_data']; // version 1.1 of the spec else if (hints['icon_data'] && !hints['image-path']) // early versions of the spec; 'icon_data' should only be used if 'image-path' is not available hints['image-data'] = hints['icon_data']; + } let ndata = { appName: appName, icon: icon,